package be.beeworks.scrumblebee

class Product {
    String code
    String name
    String description
    Backlog backlog
    Person owner
    Person scrumMaster
    Date dateCreated
    Date lastUpdate

    static hasMany = [teams: Team, sprints: Sprint]

    static constraints = {
        code(blank: false, maxSize: 10, unique: true)
        name(blank: false, maxSize: 100)
        description(nullable: true, maxSize: 2000)
        backlog(nullable: false)
        owner(nullable: false)
        scrumMaster(nullable: false)
    }
}
